<div class="page-search-bar">
	<div class="widget-header">
		<div class="align-left">
			<%= simple_form_for(orders_path, :method => 'get') do |f| %>
			<input type="text" name="order[order_code]" class="input-xs" placeholder="订单编号">
						
			<div class="widget-buttons buttons-bordered">
				<input class="btn btn-blue btn-xs" name="commit" type="submit" value="搜索">
			</div>
			<% end %>
		</div>
	</div>
</div>

<div class="row">
	<div class="col-xs-12 col-md-12">

		<div class="widget">

			<div class="widget-header bordered-bottom bordered-themeprimary">
				<i class="widget-icon fa fa-tasks themeprimary"></i>
				<span class="widget-caption themeprimary"><%=@page_title %></span>
				<div class="widget-buttons buttons-bordered">
					<%= button_to '新建发票', new_invoice_path, method: :get, :class => "btn btn-blue btn-xs" %>
				</div>

			</div><!--Widget Header-->
			<div class="widget-body">
				<div class="widget-main no-padding">
          <p id="notice"><%= notice %></p>
					<div class="flip-scroll">
						<div class="dataTables_wrapper form-inline no-footer">
							<table class="table table-bordered table-striped table-condensed flip-content">
								<thead class="flip-content bordered-palegreen">

									
								
							</table>
							<div class="row DTTTFooter">
								<div class="col-xs-12 col-md-12">
									<div class="dataTables_paginate paging_bootstrap" id="simpledatatable_paginate">
										<%= paginate @invoices, window: 1, outer_window: 1, remote: true %>
									</div>
								</div>
							</div>

						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
